<ul class="nav nav-tabs nav-stacked">
    <?php if (in_array('exercise/banner/index', $path)) { ?>
        <li <?php if ($_SERVER['REQUEST_URI'] == '/content/banner/index') echo 'class="on"' ?>><a
                href="/exercise/banner/index">banner管理</a>
        </li>
    <?php } ?>
    <?php if (in_array('exercise/listening/index', $path)) { ?>
        <li <?php if ($_SERVER['REQUEST_URI'] == '/exercise/listening/index') echo 'class="on"' ?>><a
                href="/exercise/listening/index">听力管理</a>
        </li>
    <?php } ?>
    <?php if (in_array('exercise/read/index', $path)) { ?>
        <li <?php if ($_SERVER['REQUEST_URI'] == '/exercise/read/index') echo 'class="on"' ?>><a
                href="/exercise/read/index">阅读管理</a>
        </li>
    <?php } ?>
    <?php if (in_array('exercise/speak/index', $path)) { ?>
        <li <?php if ($_SERVER['REQUEST_URI'] == '/exercise/speak/index') echo 'class="on"' ?>><a
                href="/exercise/speak/index">口语管理</a>
        </li>
    <?php } ?>
    <?php if (in_array('exercise/write/index', $path)) { ?>
        <li <?php if ($_SERVER['REQUEST_URI'] == '/exercise/write/index') echo 'class="on"' ?>><a
                href="/exercise/write/index">写作管理</a>
        </li>
    <?php } ?>
    <?php if (in_array('exercise/set/index', $path)) { ?>
        <li <?php if ($_SERVER['REQUEST_URI'] == '/exercise/set/index') echo 'class="on"' ?>><a
                href="/exercise/set/index">做题人数</a>
        </li>
    <?php } ?>

    <?php if (in_array('exercise/report/index', $path)) { ?>
        <li <?php if ($_SERVER['REQUEST_URI'] == '/exercise/report/index') echo 'class="on"' ?>><a
                href="/exercise/report/index">报错反馈</a>
        </li>
    <?php } ?>
    <?php if (in_array('exercise/mock/index', $path)) { ?>
        <li <?php if ($_SERVER['REQUEST_URI'] == '/exercise/mock/index') echo 'class="on"' ?>><a
                href="/exercise/mock/index">模考记录</a>
        </li>
    <?php } ?>
</ul>
<style>
    .on {
        background: #DEDADA;
    }
</style>
